<h3>Liste des structures</h3>
<a href="/admin/structure/creer">Ajouter une structure</a>
<div>
	<select id="structureAdd">
		<?php 
			echo '<option value="-1">Selectionner la structure</option>';
		foreach($this->assign['dataStruct'] as $key => $val){
			echo'<option value="'.$val['contentobject_structure_id'].'">'.$val['contentobject_structure_caption'].'</option>';
		}
		?>
	</select>
</div>

<script>
	$('#structureAdd').change(function(){
		var structure_id = $(this).attr("value");
		if(structure_id>0){
			document.location.href = '/admin/structure/editer/'+structure_id;
		}
	});
</script>